package com.java.androidmarket.service;

import com.java.androidmarket.entity.OrderGoods;
import com.java.androidmarket.entity.Stock;

/**
 * description:
 * author:张腾
 * date:2021-05-21
 */
public interface StockService {

    int getStock(int goodsId);

    boolean checkStock(int goodsId,int wantNums);

    void setLock(int goodsId,int lockNum);

    void reLock(int goodsId,int lockNum);

    void lockTosSale(OrderGoods orderGoods);
}
